package itdep.jsf.internal;

import itdep.domain.CodedEntity;
import itdep.services.CodedEntityService;

/**
 * Bean for managing internationalized entities
 * <p/>
 * Created: 04.06.2009 18:52:04 by Tolar
 */
public class TranslatableTableBean<E extends CodedEntity> extends CommonTableBean<E> {
	@Override
	protected E editMethod(final E record) {
		final CodedEntityService<E> entityService = (CodedEntityService<E>) getService();
		return entityService.get(record.getId(), JSFUtils.getLocale());
	}

}
